pkgname=lmbench
pkgver=3.0
pkgrel=0
pkgdesc="A suite of simple, portable, ANSI/C microbenchmarks for UNIX/POSIX, measures latency and bandwidth."
arch=('i386' 'x86_64' 'riscv64')
url="http://www.bitmover.com/lmbench/"
license=('GPL')
makedepends_debian_11=(libtirpc-dev)
source=("https://github.com/intel/lmbench.git"
        "lmbench.patch"
	"CONFIG.lmbench3")
md5sums=('SKIP' 'SKIP' 'SKIP')

build() {
	cd "$srcdir/$pkgname"
	make
}

package() {
	mkdir -p "$pkgdir/lkp/benchmarks/lmbench3"
	cp -r "$srcdir/$pkgname/"* "$pkgdir/lkp/benchmarks/lmbench3"
	cp "$srcdir/CONFIG.lmbench3" "$pkgdir/lkp/benchmarks/lmbench3/"
}
